package cn.huanglei936.essay.thymeleaf.config;

import cn.huanglei936.essay.thymeleaf.api.ucenter.UC;
import cn.huanglei936.essay.thymeleaf.servlet.TestServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * servlet 配置
 *
 * @author huanglei
 * @email lhuang@matmass.com
 * @data 2018/10/18 16:21
 */
@Configuration
public class ServletConfig {

    @Bean
    public ServletRegistrationBean servletRegistrationBean() {
        ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(new UC(), "/api/uc.php");
        return servletRegistrationBean;
    }

}
